<div appBsModal #editModal="bs-modal" class="modal fade" [ngClass]="modalExpandOb.className" tabindex="-1" role="dialog"
    aria-labelledby="editModal" aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form #flowForm="ngForm" novalidate (ngSubmit)="save()">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span>{{'Edit' | localize}}</span>
                    </h4>
                    <span class="pull-right">
                        <a class="btn btn-smallEx" (click)='modalExpandOb.modalExHandle("small")'>
                            <i class="bi bi-arrows-angle-expand" *ngIf="!modalExpandOb.isSmallEx"></i>
                            <i class="bi bi-arrows-angle-contract" *ngIf="modalExpandOb.isSmallEx"></i>
                        </a>
                        <a class="btn btn-fullscreen" (click)='modalExpandOb.modalExHandle("full")'>
                            <i class="bi bi-arrows-fullscreen" *ngIf="!modalExpandOb.isFullScreen"></i>
                            <i class="bi bi-fullscreen-exit" *ngIf="modalExpandOb.isFullScreen"></i>
                        </a>
                        <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')"
                            [disabled]="saving">
                            <i aria-hidden="true" class="bi bi-x"></i>
                        </button>
                    </span>

                </div>
                <div class="modal-body">
                    <tabset class="ui-tabs-nav">
                        <tab heading="表单" active="true">
                            <div class="row">
                                <textarea id="textContent" style="width:100%;height:500px;" [(ngModel)]="workFlowFormDto.htmlData" name="htmlData"></textarea>
                            </div>

                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="md-checkbox-list">
                                        <div class="md-checkbox">
                                            <input id="Enabled" name="Enabled" class="md-check" type="checkbox"
                                            [(ngModel)]="workFlowFormDto.isActive">
                                            <label for="Enabled">
                                                <span class="inc"></span>
                                                <span class="check"></span>
                                                <span class="box"></span>
                                                {{'Active'| localize}}
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </tab>
                        <tab heading="配置">
                            <div class="row">
                                <textarea id="textContent2" style="width:100%;height:500px;" [(ngModel)]="workFlowFormDto.extensionData" name="extensionData"></textarea>
                            </div>
                        </tab>
                    </tabset>
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-light-primary font-weight-bold"
                        (click)="close()">{{"Cancel" | localize}}</button>
                    <button type="submit" class="btn btn-primary font-weight-bold" [disabled]="!flowForm.form.valid"
                        [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
                        <span>{{"Save" | localize}}</span></button>
                </div>
            </form>
        </div>
    </div>
</div>
